home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 April: Mac OS SDK / Dev.CD Apr 00 SDK1.toast / Development Kits / Mac OS / Translation Manager / Sample Code / Translation Extension Example / thng.r < prev    next >
Encoding:
Text File  |  1998-06-05  |  1.3 KB  |  44 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        thng.r
  3.  
  4.     Contains:    Thing resource for a Translation Extension containing 68K and PowerPC code
  5.     
  6.     Copyright:    © 1998 by Apple Computer, Inc., all rights reserved.
  7. */
  8.  
  9. #define UseExtendedThingResource 1
  10. #include "Types.r"
  11. #ifndef UNDERMPW
  12.     #include "Components.r"
  13. #endif
  14.  
  15. resource 'thng' (128, locked) {
  16.         'xlat',                                        /* Type */
  17.         0,                                            /* Subtype */
  18.         'M&Ms',                                        /* Manufacturer */
  19.         7,                                             /* component flags */
  20.         kAnyComponentFlagsMask,                        /* component flags Mask */
  21.         'xlat',                                        /* Code Type */
  22.         128,                                        /* Code ID */
  23.         'STR ',                                        /* Name Type */
  24.         128,                                        /* Name ID */
  25.         'STR ',                                        /* Info Type */
  26.         129,                                        /* Info ID */
  27.         'ICON',                                        /* Icon Type */
  28.         128,                                        /* Icon ID */
  29.         0,                                            /* version of Component */
  30.         componentHasMultiplePlatforms +
  31.         componentDoAutoVersion,                        /* registration flags */
  32.         0,                                            /* resource id of Icon Family */
  33.         {
  34.             7,                                         /* component flags */
  35.             'xlat',                                    /* Code Type */
  36.             128,                                    /* Code ID */
  37.             platform68k,                            /* platform type (response from gestaltSysArchitecture) */
  38.             7,                                         /* component flags */
  39.             'xlat',                                    /* Code Type */
  40.             129,                                    /* Code ID */
  41.             platformPowerPC                            /* platform type (response from gestaltSysArchitecture) */
  42.         }
  43. };
  44.